import 'package:flutter/material.dart';
import 'package:top_foundation/top_foundation.dart';

import 'controller.dart';

class ModifyPhone2Page extends GetView<ModifyPhone2Controller> {
  const ModifyPhone2Page({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: detailAppBar(context, title: '修改手机号'),
      body: Padding(
        padding: EdgeInsets.symmetric(horizontal: 31.w),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            SizedBox(
              height: 32.w,
            ),
            const UITextField(hintText: '请输入新手机号'),
            SizedBox(
              height: 10.w,
            ),
            CodeField(
              controller: controller.state.codeCtrl,
              smsClickListener: () {},
            ),
            separatorLine(),
            SizedBox(
              height: 30.w,
            ),
            ExpandedFilledButton(
              text: '确认修改',
              onPressed: controller.sure,
            )
          ],
        ),
      ),
    );
  }
}
